﻿
@{
    ViewBag.Title = "Test";
}


<script>

    $(function () {

        $.get('@Url.Action("GetList", "Ding")', function (result) {
            $.each(result, function (index, person) {
                $('#myDiv').append('<p>Id: ' + person.PersonID + '</p>' +
                    '<p>Name: ' + person.Name + '</p>');

            });
        });


    });


</script>

<div>
    <div id="myDiv"></div>
</div>

